package net.ericaro.neojavagen.interfaces ;
import net.ericaro.neojavagen.interfaces.AnnotationValue;
import net.ericaro.neojavagen.names.TypeName;
import net.ericaro.neojavagen.interfaces.ElementValue ;

/**
* *<pre> Annotation :
    @ TypeName AnnotationValue?
</pre>
*/
public class Annotation  implements ElementValue {

TypeName typename;
AnnotationValue annotationvalue ;

public Annotation( TypeName typename, AnnotationValue annotationvalue ){
	this.typename = typename; this.annotationvalue = annotationvalue ;
	}public Annotation( TypeName typename ){
this.typename = typename ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "@" ).append(" ");
stringbuilder.append( this.typename ).append(" ");
if (this.annotationvalue !=null ) stringbuilder.append( this.annotationvalue ).append(" ") ;
	return stringbuilder.toString();
}

}
